/**
 * 员工月度绩效信息
 */

app.controller('formSelfCtrl', ['$scope', '$http', FormSelfController]);
function FormSelfController($scope, $http){
	//社保、医保、公积金已生成对应付款单的不能编辑
	for (let i = 0; i < $scope.rows.length; i++) {
		if ($scope.rows[i].code === "soseBase" && $scope.valueMap['isSoseBase'] == 1){
			$scope.rows[i].type = 't_text'
			$scope.rows[i].stateReadonly = 1
		}
		if ($scope.rows[i].code === "miBase" && $scope.valueMap['isMiBase'] == '1'){
			$scope.rows[i].type = 't_text'
			$scope.rows[i].stateReadonly = 1
		}
		if ($scope.rows[i].code === "housingPfBase" && $scope.valueMap['isHousingPfBase'] == '1'){
			$scope.rows[i].type = 't_text'
			$scope.rows[i].stateReadonly = 1
		}
	}

}